package org.jeecg.modules.zixishi.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 座位
 * @Author: jeecg-boot
 * @Date:   2024-05-19
 * @Version: V1.0
 */
@Data
@TableName("sr_seat")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sr_seat对象", description="座位")
public class Seat implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**自习室*/
    @Excel(name = "自习室", width = 15, dictTable = "sr_zixishi", dicText = "name", dicCode = "id")
    @Dict(dictTable = "sr_zixishi", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "自习室")
    private String zixishiId;
    /**区域*/
    @Excel(name = "区域", width = 15, dictTable = "sr_quyu", dicText = "name", dicCode = "id")
    @Dict(dictTable = "sr_quyu", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "区域")
    private String quyuId;
    /**名称*/
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**编码*/
    @Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private String code;
    /**图片*/
    @Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
    private String pic;
    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "seat_status")
    @Dict(dicCode = "seat_status")
    @ApiModelProperty(value = "状态")
    private String status;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**设备*/
    @Excel(name = "设备", width = 15, dictTable = "sr_device", dicText = "device_name", dicCode = "uid")
    @Dict(dictTable = "sr_device", dicText = "device_name", dicCode = "uid")
    @ApiModelProperty(value = "设备")
    private String devices;

    @TableField(exist = false)
    private List<String> avliTimes;

    @TableField(exist = false)
    private String quyuName;
}
